package net.xdclass.user.request;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 用户注册
 */
@Data
@ApiModel("用户注册-请求对象")
public class UserRegisterRequest {

    @ApiModelProperty(value = "用户昵称", example = "ami")
    private String name;
    @ApiModelProperty(value = "密码", example = "12345")
    private String pwd;
    @ApiModelProperty(value = "用户头像", example = "https://localhost:8080/example.png")
    @JsonProperty("head_img")
    private String headImg;
    @ApiModelProperty(value = "个性签名", example = "人生需要动态规划，学习需要贪心算法")
    private String slogan;
    @ApiModelProperty(value = "性别", example = "1")
    private Integer sex;
    @ApiModelProperty(value = "邮箱", example = "12345@gmail.com")
    private String mail;

    @ApiModelProperty("验证码")
    private String code;
}
